<?php
$uname = $_GET['username'];
$pwd = $_GET['pwd'];

if($uname == 'admin' && $pwd == '123456'){
    echo '1';
}else{
    echo '2';
}
?>